package com.awa.usercenter.service;

import com.aliyuncs.exceptions.ClientException;
import com.awa.usercenter.common.BaseResponse;
import com.awa.usercenter.model.domain.User;
import com.awa.usercenter.model.code.SendCodeRequest;
import com.awa.usercenter.model.domain.request.ForgetPassRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author zhengcan
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-01-23 08:40:42
*/

public interface  UserService extends IService<User> {
    // 登录
    String userLoginToken(String userAccount, String userPassword);
    // 发送短信
    void sendsms(String userPhone,String code) throws ClientException;
    //注册
    void userRegister(String userPhone,String userPassword,String code);
    // 登出
    int userLogout(HttpServletRequest request);
    // 忘记密码
    BaseResponse<String> forgetPassHandler(ForgetPassRequest forgetPassRequest);

}
